package edu.zqu.collegeField.project.service;


import com.baomidou.mybatisplus.extension.service.IService;
import edu.zqu.collegeField.project.po.School;
import edu.zqu.collegeField.project.vo.SchoolVo;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.math.BigInteger;
import java.util.List;

/**
 * <p>
 * 校区 服务类
 * </p>
 *
 * @author 廖森
 * @since 2020-06-28
 */
public interface SchoolService extends IService<School> {
    List<SchoolVo> get(BigInteger collegeId, String name, String englishName);//获取校区列表

    SchoolVo getById(BigInteger id);//获取校区

    String getNameById(BigInteger id);//获取校区名称

    SchoolVo getByName(BigInteger collegeId,String name);//获取校区

    int add(School school);//添加校区

    int update(School school);//修改校区

    int delete(BigInteger id,BigInteger byWho);//删除校区


}
